#pragma once
#include <windows.h>
#include <winldap.h>
#include <ntldap.h>
#include <stdio.h>
#include <rpcdce.h>
#include <wchar.h>
#include <locale.h>

VOID BuildGUIDString(WCHAR* szGUID, LPBYTE pGUID);
BOOL ProcessResult(LDAP* pldapConnection, LDAPMessage* message, __int64* piUSNChanged);
INT GetChangeNotifications(LPWSTR szSearchBaseDN);
VOID BuildGUIDString(WCHAR* szGUID, LPBYTE pGUID);
BOOL ProcessResult(LDAP* pldapConnection,
	LDAPMessage* pmessage,
	__int64* piUSNChanged);
int wmain();